package com.hxzy.common.exception;

import com.hxzy.common.enums.RCodeEnum;

/**
 * 自定义异常
 */
public class MarketException extends RuntimeException {

    private RCodeEnum codeEnum;

    public MarketException(RCodeEnum codeEnum) {
        super(codeEnum.getMessage());
        this.codeEnum = codeEnum;
    }

    public RCodeEnum getCodeEnum() {
        return codeEnum;
    }
}
